package cn.edu.sjtu.blank.dto;

import cn.edu.sjtu.blank.util.MathUtil;
import lombok.Builder;
import lombok.Data;

/** for mock */
// 制坯
@Data
@Builder
class MockData {
  private Double blankTensileStrength;
  private Double blankYieldStrength;
  private Double blankElongation;
  private Double blankHardness;
  private Double blankThickness;
  private Double blankInsideDiameter;

  static MockData genRandomData() {
    return MockData.builder()
        .blankTensileStrength(MathUtil.range(570, 578))
        .blankYieldStrength(MathUtil.range(500, 510))
        .blankElongation(MathUtil.range(10, 12))
        .blankHardness(MathUtil.range(149, 151))
        .blankThickness(MathUtil.range(79.5, 80.5))
        .blankInsideDiameter(MathUtil.range(1990, 2010))
        .build();
  }
}
